//
//  FirstTwoViewController.m
//  轮胎商城
//
//  Created by 张晋磊 on 2017/3/24.
//  Copyright © 2017年 张晋磊. All rights reserved.
//

#import "FirstTwoViewController.h"

@interface FirstTwoViewController ()

@end

@implementation FirstTwoViewController

-(void)viewWillAppear:(BOOL)animated{

    [super viewWillAppear:animated];
    
    self.tabBarController.tabBar.hidden = YES;//隐藏标签栏
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    switch (self.index) {
        case 100:
            self.view.backgroundColor = [UIColor redColor];
            break;
        case 101:
            self.view.backgroundColor = [UIColor greenColor];
            break;
        case 102:
            self.view.backgroundColor = [UIColor yellowColor];
            break;
        case 103:
            self.view.backgroundColor = [UIColor blueColor];
            break;
            
        default:
            break;
    }
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
